package net.mukia.plugin.auth;

import org.scribe.builder.ServiceBuilder;
import org.scribe.builder.api.QWeiboApi;
import org.scribe.oauth.OAuthService;

import net.mukia.model.Account;
import net.mukia.model.RToken;

public class QWeiBoLogin implements Login {
	
	public final static String API_KEY = "30412";
	public final static String API_SECERT = "2c6fb9f7a320418b844c2524e6e374a2";
	public final static String CALL_BACK = "http://localhost:8080/reader/account/callback.do";
	public final static String USER_INFO = "http://api.t.sina.com.cn/account/verify_credentials.json";
	
	
	@Override
	public RToken login(String oauthVerifier, String oauthSecret, String oauthToken) {
		return null;
	}

	@Override
	public String redirect() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Account userinfo(RToken rToken) {
		// TODO Auto-generated method stub
		return null;
	}
	
	public OAuthService getService(){
		return new ServiceBuilder().provider(QWeiboApi.class)
				.apiKey(API_KEY)
				.apiSecret(API_SECERT)
				.callback(CALL_BACK).build();
	}

}
